<!-- /* Description for file.
 * 邮箱初始化设置
 * @copyright     Copyright 2008-2010, PHInfo Services Inc. (http://www.phinfoservices.com)
 * @package       ues
 * @subpackage    ues/app/views/emails
 * @since         ues
 * @version       V0.0.1
 * @modifiedby    张海杰2011年0628
 * @lastmodified  张海杰2011年0705
 */
 -->
 
 <?php
echo $html->css ( 'style' );
echo $html->css ( 'tab' );
echo $javascript->link ( 'jquery' );

//print_r($customertypes);
?>
<script type="text/javascript">
	function mycheck() {
		var EmailMailboxServer=$("#EmailMailboxServer").val();
		var EmailPortNumber=$("#EmailPortNumber").val();
		var EmailYourEmail=$("#EmailYourEmail").val();
		var EmailUsername=$("#EmailUsername").val();
		var EmailPassword=$("#EmailPassword").val();
		if($.trim(EmailMailboxServer)==""||$.trim(EmailPortNumber)==""||$.trim(EmailYourEmail)==""||$.trim(EmailUsername)==""||$.trim(EmailPassword)=="")
		{
			alert("请您认真填写");
			return false;
		}
		return true;	
	}
</script>

<!-- 当前位置-->
<div id="tabmenubar">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td class="tabmenubarcontent"><?php echo __("YourPosition");echo "："; //echo __($nowPosition)?></td>
		<td></td>
		<td></td>

	</tr>
</table>
</div>
<!-- 当前位置-->

<?php echo $form->create('Email',array('action'=>'edit','type'=> 'post',"onsubmit"=>"return mycheck();"));?>
<?php echo $form->hidden('id',array('default'=>$email['Email']['id']));?>
<div class="tabflex">
<fieldset><legend><?php __('Email Add');?></legend>
<table width="100%" cellspacing="0" cellpadding="0" border="0"
	style="text-align: left">
	<tr>
		<td width="100"></td>
		<td width="100"><?php __('Mailbox');?></td>
		<td colspan="2"><?php echo $form->input('mailboxServer',array('default'=>$email['Email']['mailboxServer'],'class' => 'TextBoxL txtOut','label'=>false));?></td>
	</tr>
	<tr>
		<td width="100"></td>
		<td width="100"><?php __('email post');?></td>
		<td width="150"><?php echo $form->input('portNumber',array('default'=>$email['Email']['portNumber'],'class' => 'TextBoxL txtOut','label'=>false));?></td>

		<td width="">
       <?php 
       if($email['Email']['isSslCheck']==0)
       {
       		echo $form->checkbox('isSslCheck', array('value' => '1'));
       }
       else
       {
       		echo $form->checkbox('isSslCheck', array('value' => '1','checked'=>true));
       }?>
       <?php __('isSSL');?></td>
	</tr>
	<tr>
		<td width="100"></td>
		<td width="100"><?php __('You email');?></td>
		<td colspan="2"><?php echo $form->input('yourEmail',array('default'=>$email['Email']['yourEmail'],'class' => 'TextBoxL txtOut','label'=>false));?></td>
	</tr>
	<tr>
		<td width="100"></td>
		<td width="100"><?php __('mailusername');?></td>
		<td colspan="2"><?php echo $form->input('username',array('default'=>$email['Email']['username'],'class' => 'TextBoxL txtOut','label'=>false));?></td>
	</tr>
	<tr>
		<td width="100"></td>
		<td width="100"><?php __('mailpassword');?></td>
		<td colspan="2"><?php echo $form->input('password',array('default'=>$email['Email']['password'],'class' => 'TextBoxL txtOut','label'=>false));?></td>
	</tr>
	<tr>
		<td width="100"></td>
		<td width="100"></td>
		<td colspan="2">
		<table width="5%" cellspacing="0" cellpadding="0" border="0">
			<tr>
				<td width="20px">
				<?php echo $form->button('确定',array('type'=>'submit','class'=>'addsubmit'));?> 			
				<!-- __('Add', true)增加--></td>
				<td width="20px"><?php echo $form->button('重置',array('type'=>'reset','class'=>'resetsubmit'));?>
				<!-- __('reset', true)取消--></td>
				<td></td>
			</tr>
		</table>
		</td>
	</tr>
</table>
</fieldset>
</div>	
<?php echo $form->end();?>
